<template>
    <view class="datree-box" v-if="_url">
        <web-view :src="_url"></web-view>
    </view>
</template>

<script>
    export default {
        data() {
            return {
                _url: ''
            }
        },
        onLoad(o) {
            let t = o.t
            let id = JSON.parse(this.getS('user')).userId
            let url
            if (t == 'je') url = //金额统计
                // `https://www.jyjkyqhl.com/webroot/decision/view/report?viewlet=%25E4%25B8%259A%25E5%258A%25A1%25E4%25B8%25AA%25E4%25BA%25BA%25E9%2587%2591%25E9%25A2%259D.cpt&ref_t=design&ID=${id}`
				`https://www.jyjkyqhl.com:8443/webroot/decision/view/form?viewlet=%25E4%25B8%259A%25E5%258A%25A1%25E4%25B8%25AA%25E4%25BA%25BA%25E9%2587%2591%25E9%25A2%259D%25E6%2595%25B0%25E6%258D%25AE.frm&ref_t=design&ID=${id}`
			if (t == 'yh') url = //银行数据
                // `https://www.jyjkyqhl.com/webroot/decision/view/report?viewlet=%25E4%25B8%259A%25E5%258A%25A1%25E4%25B8%25AA%25E4%25BA%25BA%25E9%2593%25B6%25E8%25A1%258C%25E6%2595%25B0%25E6%258D%25AE.cpt&ref_t=design&ID=${id}`
				`https://www.jyjkyqhl.com:8443/webroot/decision/view/form?viewlet=%25E4%25B8%259A%25E5%258A%25A1%25E4%25B8%25AA%25E4%25BA%25BA%25E9%2593%25B6%25E8%25A1%258C%25E6%2595%25B0%25E6%258D%25AE%25E7%25BB%259F%25E8%25AE%25A1.frm&ref_t=design&ID=${id}`
			if (t == 'gr') url = //个人数据
                //`https://www.jyjkyqhl.com/webroot/decision/view/report?viewlet=%25E4%25B8%259A%25E5%258A%25A1%25E4%25B8%25AA%25E4%25BA%25BA%25E6%2595%25B0%25E6%258D%25AE.cpt&ref_t=design&ID=${id}`
				`https://www.jyjkyqhl.com:8443/webroot/decision/view/form?viewlet=%25E4%25B8%25AA%25E4%25BA%25BA%25E6%2595%25B0%25E6%258D%25AE%25E7%25BB%259F%25E8%25AE%25A1.frm&ref_t=design&ID=${id}`
			if (t == 'gs') url = //公司数据
                `https://www.jyjkyqhl.com/webroot/decision/view/form?viewlet=%25E5%2585%25AC%25E5%258F%25B8%25E6%2595%25B0%25E6%258D%25AE%25E7%25BB%259F%25E8%25AE%25A1.frm&ref_t=design&ref_c=9b284ed9-5b29-4431-86c8-f24c978329bd`
            if (t == 'gsmb') url = //公司目标
                `https://www.jyjkyqhl.com/webroot/decision/view/form?viewlet=%25E5%2585%25AC%25E5%258F%25B8%25E5%25B9%25B4%25E5%25BA%25A6%25E7%259B%25AE%25E6%25A0%2587%25E5%25AE%258C%25E6%2588%2590%25E6%2583%2585%25E5%2586%25B5%25E6%2580%25BB%25E8%25A1%25A8.frm&ref_t=design&ref_c=adcdc9e4-6925-4f0c-b512-0d00806a69b9`
            if (t == 'grmb') url = //个人目标
                `https://www.jyjkyqhl.com/webroot/decision/view/form?viewlet=%25E5%2585%25AC%25E5%258F%25B8%25E5%25B9%25B4%25E5%25BA%25A6%25E7%259B%25AE%25E6%25A0%2587%25E5%25AE%258C%25E6%2588%2590%25E6%2583%2585%25E5%2586%25B5.frm&ref_t=design&ID=${id}`
            this._url = url
        },
        methods: {


        },
    }
</script>

<!-- <style lang="scss" src="./demox.scss"></style> -->